package org.cs.mgr.before.model;

import java.math.BigDecimal;
import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.print.DocFlavor.STRING;

@Entity
@Table(name = "order")
public class Order {
    private String ID;
    private String ORDER_NUMBER;
    private BigDecimal PAY_PRICE;
    private BigDecimal SHIPPING_EXPENSE;
    private String AREA;
    private String ADDRESS;
    private Timestamp PAY_TIME;
    private Timestamp SHIP_TIME;
    private Timestamp RECEIPT_TIME;
    private boolean  IS_PAY;
    private boolean  IS_SHIP;
    private boolean  IS_RECEIPT;
    private boolean  IS_GROUP;
    private boolean  STATUS;
    private String GROUP_ID;
    private String ORDER_GOOD_ID;
    private String GOOD_ID;
    private String USER_ID;
    
    @Id
    @GeneratedValue(strategy=GenerationType.AUTO)
    @Column(name = "ID")
	public String getID() {
		return ID;
	}
	public void setID(String iD) {
		ID = iD;
	}
	
	@Column(name = "ORDER_NUMBER",  nullable=true, columnDefinition="varchar(32)")
	public String getORDER_NUMBER() {
		return ORDER_NUMBER;
	}
	public void setORDER_NUMBER(String oRDER_NUMBER) {
		ORDER_NUMBER = oRDER_NUMBER;
	}
	
	@Column(name = "PAY_PRICE")
	public BigDecimal getPAY_PRICE() {
		return PAY_PRICE;
	}
	public void setPAY_PRICE(BigDecimal pAY_PRICE) {
		PAY_PRICE = pAY_PRICE;
	}
	
	@Column(name = "SHIPPING_EXPENSE")
	public BigDecimal getSHIPPING_EXPENSE() {
		return SHIPPING_EXPENSE;
	}
	public void setSHIPPING_EXPENSE(BigDecimal sHIPPING_EXPENSE) {
		SHIPPING_EXPENSE = sHIPPING_EXPENSE;
	}
	
	@Column(name = "AREA")
	public String getAREA() {
		return AREA;
	}
	public void setAREA(String aREA) {
		AREA = aREA;
	}
	
	@Column(name = "ADDRESS")
	public String getADDRESS() {
		return ADDRESS;
	}
	public void setADDRESS(String aDDRESS) {
		ADDRESS = aDDRESS;
	}
	
	@Column(name = "PAY_TIME")
	public Timestamp getPAY_TIME() {
		return PAY_TIME;
	}
	public void setPAY_TIME(Timestamp pAY_TIME) {
		PAY_TIME = pAY_TIME;
	}
	
	@Column(name = "SHIP_TIME")
	public Timestamp getSHIP_TIME() {
		return SHIP_TIME;
	}
	public void setSHIP_TIME(Timestamp sHIP_TIME) {
		SHIP_TIME = sHIP_TIME;
	}
	
	@Column(name = "RECEIPT_TIME")
	public Timestamp getRECEIPT_TIME() {
		return RECEIPT_TIME;
	}
	public void setRECEIPT_TIME(Timestamp rECEIPT_TIME) {
		RECEIPT_TIME = rECEIPT_TIME;
	}
	
	@Column(name = "IS_PAY")
	public boolean isIS_PAY() {
		return IS_PAY;
	}
	public void setIS_PAY(boolean iS_PAY) {
		IS_PAY = iS_PAY;
	}
	
	@Column(name = "IS_SHIP")
	public boolean isIS_SHIP() {
		return IS_SHIP;
	}
	public void setIS_SHIP(boolean iS_SHIP) {
		IS_SHIP = iS_SHIP;
	}
	
	@Column(name = "IS_RECEIPT")
	public boolean isIS_RECEIPT() {
		return IS_RECEIPT;
	}
	public void setIS_RECEIPT(boolean iS_RECEIPT) {
		IS_RECEIPT = iS_RECEIPT;
	}
	
	@Column(name = "IS_GROUP")
	public boolean isIS_GROUP() {
		return IS_GROUP;
	}
	public void setIS_GROUP(boolean iS_GROUP) {
		IS_GROUP = iS_GROUP;
	}
	
	@Column(name = "STATUS")
	public boolean isSTATUS() {
		return STATUS;
	}
	public void setSTATUS(boolean sTATUS) {
		STATUS = sTATUS;
	}
	
	@Column(name = "GROUP_ID")
	public String getGROUP_ID() {
		return GROUP_ID;
	}
	public void setGROUP_ID(String gROUP_ID) {
		GROUP_ID = gROUP_ID;
	}
	
	@Column(name = "ORDER_GOOD_ID")
	public String getORDER_GOOD_ID() {
		return ORDER_GOOD_ID;
	}
	public void setORDER_GOOD_ID(String oRDER_GOOD_ID) {
		ORDER_GOOD_ID = oRDER_GOOD_ID;
	}
	
	@Column(name = "GOOD_ID")
	public String getGOOD_ID() {
		return GOOD_ID;
	}
	public void setGOOD_ID(String gOOD_ID) {
		GOOD_ID = gOOD_ID;
	}
	
	@Column(name = "USER_ID")
	public String getUSER_ID() {
		return USER_ID;
	}
	public void setUSER_ID(String uSER_ID) {
		USER_ID = uSER_ID;
	}

    
    
    
    


}
